# -*- Mode: Python -*-

Import('env')

myenv = env.Clone()

# we need to use whole-archive here, because the devices are not used explicitly so that the linker
# thinks he doesn't need to link them
myenv['LINKFLAGS'] += ' -Wl,--whole-archive -lseoul -Wl,--no-whole-archive'

prog = myenv.NREProgram(
    myenv, 'console', Glob('*.cc'),
    cpppath = ['#libs/libseoul/include', '#libs/libseoul/nre/include']
)
myenv.Depends(prog, myenv['LIBPATH'] + '/libseoul.a')
